<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Canvas</title>
    <style>
        #canvas{
        }
    </style>
</head>
<body>
    <canvas id="canvas"></canvas>
    <script>
        const canvas=document.getElementById('canvas')
        let ctx2d=canvas.getContext('2d')
        
        console.log(ctx2d)
    </script>
</body>
</html>